<!-- inc:global_head -->
<!-- inc:right.css -->
<!-- inc:right.head -->

<!-- 玩家管理 -->
<!-- if($sysAct == "add" || $sysAct == "modify") -->
<div class="table2" style="text-align:left;">
	<a href="admin.php?file=index">系统首页</a> &raquo;
	<a href="admin.php?file=useritem&act=list">玩家物品</a> &raquo;
	<!-- if($sysAct == "add") -->添加新物品<!-- else -->编辑物品<!-- end -->
	<input type="button" value="物品列表" onclick="qgurl('admin.php?file=useritem&act=list')">
</div>

<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<form method="post" action="admin.php?file=useritem&act=viewok&id={:$id}" onsubmit="return add_msg();">
<tr>
	<td class="left">条目ID：<span style="color:red;">*</span></td>
	<td class="right">
		<input type="text" name="id" id="id" value="{:$rs[id]}">
	</td>
</tr>
</table>
</div>

<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">所属玩家ID：<span style="color:red;">*</span></td>
	<td class="right">
		<input type="text" name="i_uid" id="i_uid" value="{:$rs[i_uid]}">
<span class="clue_on">[填写所属玩家的ID不是账号]</span>
	</td>
</tr>
</table>
</div>
<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">物品类型：</td>
	<td class="right">
		<input type="text" name="i_style_num" id="i_style_num" value="{:$rs[i_style_num]}">
		<span class="clue_on">[代码：1（武器）、2（铠甲）、3（坐骑）、4（书藉）、6（兵符）、8（道具）、9（宝物）]</span>
		
	</td>
</tr>
</table>
</div>
<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">物品ID：</td>
	<td class="right">
		<input type="text" name="s_id" id="s_id" value="{:$rs[s_id]}">
		<span class="clue_on">[请勿乱填 参照物品设置表中ID]</span>
	</td>
</tr>
</table>
</div>
<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">种类名称：</td>
	<td class="right">
		<input type="text" name="i_goodsname" id="i_goodsname" value="{:$rs[i_goodsname]}">
		<span class="clue_on">[请勿乱填 参照物品设置表中名称]</span>
	</td>
</tr>
</table>
</div>



<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">数量：</td>
	<td class="right">
		<input type="text" name="num" id="num" value="{:$rs[num]}">
	</td>
</tr>
</table>
</div>



<!-- run:$button_msg = $sysAct == "modify" ? "编辑物品" : "添加玩家";-->
<div class="table">
<table width="100%">
<tr>
	<td class="left"></td>
	<td class="right"><input type="submit" id="creat_button" class="mybutton_01" value="{:$button_msg}"> &nbsp; <span id="show_step" style="color:red;"></span></td>
</tr>
</form>
</table>
</div>
<script type="text/javascript">
function add_msg(msg)
{
	var username = $("username").value;
	if(!username)
	{
		alert("账号不允许为空");
		return false;
	}

	$("show_step").innerHTML = "<img src='images/loading.gif' border='0' align='absmiddle'> 正在保存数据，如果网页没有动静请刷新...";

	$("creat_button").disabled = true;
}
</script>

<!-- elseif($sysAct == "list") -->
<div class="table2" style="text-align:left;">
	<a href="admin.php?file=index">系统首页</a> &raquo;
	玩家物品
	<input type="button" value="添加新物品" onclick="qgurl('admin.php?file=useritem&act=add')">
</div>

<div class="table">
	<table cellpadding="1" cellspacing="0">
	<form method="post" action="admin.php?file=useritem&act=list">
	<tr>
		<td><input type="text" name="keywords" id="keywords" value="{:$keywords}"></td>
		<td>
			<select name="stype" id="stype">
			<option value="i_uid"{if($stype == "i_uid")} selected{end}>玩家ID</option>
			<option value="i_goodsname"{if($stype == "i_goodsname")} selected{end}>物品名称</option>
			<option value="s_id"{if($stype == "s_id")} selected{end}>种类ID</option>
			</select>
		</td>
		<td>
			<input type="submit" value="搜索" class="mybutton_01">
		</td>
		</form>
	</tr>
	</table>
</div>

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
	<td style="border-bottom:1px #D4D4D4 solid;"><img src="images/blank.gif" border="0" width="1" height="1"></td>
</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr class="table table2">
	<td height="23px" class="msg_subject_id b_b">道具ID</td>
	<td align="center" class="msg_subject b_b">所有玩家ID</td>
	<td class="msg_subject b_b">种类ID</td>
	<td class="msg_subject b_b">道具类型</td>
	<td class="msg_subject b_b">物品名称</a></td>
	<td class="msg_subject b_b">物品数量</a></td>
	<td class="msg_postdate b_b">操作</td>
</tr>
<!-- $rslist AS $key=>$valuea-->
<tr class="m_out" onmouseover="this.className='m_over'" onmouseout="this.className='m_out'">
	<td height="25px" align="center" class="b_b">{:$valuea[id]}</td>
	<td align="center" class="b_b">{:$valuea[i_uid]}</td>
	<td align="left" class="b_b">{:$valuea[s_id]}</td>
	<td align="left" class="b_b">{:$valuea[i_style]}</td>
	<td align="left" class="b_b">{:$valuea[i_goodsname]}</td>
		<td align="left" class="b_b">{:$valuea[num]}</td>
	<td align="center" class="b_b">
		<input type="button" value="编辑" class="mybutton_01" onclick="qg_modify({:$valuea[id]})">
		<input type="button" value="删除" class="mybutton_01" onclick="qg_delete({:$valuea[id]})">
	</td>
</tr>
<!-- end -->
</table>
<div align="right">{:$pagelist}</div>
<script type="text/javascript">
function qg_modify(id)
{
	window.location.href="admin.php?file=useritem&act=modify&id="+id;
}
function qg_delete(id)
{
	//判断是否删除
	question = confirm("确认删除该信息吗？特别说明，删除后无法恢复！");
	if (question != "0")
	{
		qgurl("admin.php?file=useritem&act=delete&id="+id);
	}
}
</script>
<!-- end -->